import {DataStore} from "./DataStore.js";

export class ObtainLoginData {
    getData(succendCallbacks, failCallbacks) {
        wx.login({
            success: res => {
                DataStore.getInstance().put('loginCode', res);
                succendCallbacks();
            }
            ,
            fail: res => {
                failCallbacks(res);
            }
        });
    }
}